package com.sky.entity;

import com.sky.anotion.ValidId;
import com.sky.anotion.validator.UpdateGroup;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 附件实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class FileList implements Serializable {
    private static final long serialVersionUID = 1L;
    /**文件id*/
    @ValidId(groups = {UpdateGroup.class})
    private String id;
    /**前端上传的id校验*/
    private Long uid;
    private String name;
    private String url;
    /**关联的id*/
    private String keyId;
    private Integer type;
}
